<template>
  <view class="sell_view">
    <view class="">
      <image class="sell_image" :src="item.src" mode="aspectFill"></image>
    </view>
    <view class="sell_right_view">
      <view class="sell_title">{{item.title}}</view>
      <view class="sell_desc">{{item.address}}</view>
      <view class="sell_desc">{{item.time}}</view>
      <view class="sell_tip">{{item.tyle}}</view>
      <view class="rmb">
        <text class="rmb_icon">￥</text><text class="rmb_num">{{item.money}} </text><text class="rmb_last"> 起</text>
      </view>
      <button class="buy_btn" type="warn">立即购票</button>
    </view>
  </view>
</template>

<script>
  export default {
    name: "sellcard",
    data() {
      return {}
    },
    props: {
      src: String,
      title: String,
      address: String,
      time: String,
      money: String,
      tyle: String,
      item: Object
    }
  }
</script>

<style scoped lang="scss">
  .sell_view {
    width: 90%;
    height: 180px;
    margin: 20px 5% 20px 5%;
    position: relative;
    display: flex;
    justify-content: space-around;

    .sell_image {
      width: 140px;
      height: 180px;
      border-radius: 10px;
    }

    .sell_right_view {
      position: relative;

      margin-left: 10px;

      .sell_title {
        height: 40px;
        font-size: 16px;
        font-weight: 600;
        text-align: LEFT;
        color: #333333;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }

      .sell_desc {
        height: 16px;
        font-size: 13px;
        font-weight: 400;
        text-align: LEFT;
        color: #9B9B9B;
        margin-top: 13px;
      }

      .sell_tip {
        margin-top: 17px;
        background-color: #E6E6E6;
        font-size: 13px;
        text-align: center;
        width: 70px;
        height: 25px;
        line-height: 25px;
        border-radius: 8px;
      }

      .rmb {
        // margin-top: 10px;
        position: absolute;
        left: 0;
        bottom: 0px;


        .rmb_icon {
          font-size: 15px;
          font-weight: 700;
          color: #ff0000;
          line-height: 14px;
        }

        .rmb_num {
          width: 22px;
          height: 24px;
          line-height: 23px;
          font-size: 26px;
          font-weight: 700;
          text-align: LEFT;
          color: #ff0000;
        }

        .rmb_last {
          width: 10px;
          height: 14px;
          opacity: 0.4;
          font-size: 15px;
          font-weight: 600;
          text-align: LEFT;
          color: #333333;
          line-height: 16px;
        }
      }

      .buy_btn {
        position: absolute;
        right: 0;
        bottom: 0px;
        width: 120px;
        height: 34px;
        line-height: 34px;
        background: linear-gradient(180deg, #ffa0a4, #fd5359 100%);
        border-radius: 34px;
        font-size: 14px;
        color: white;
      }
    }
  }
</style>